package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 发货单明细
 *
 * @author yw
 * @date 2023-06-07 10:48:07
 **/
@Data
@TableName("bill_of_parcels_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "发货单明细")
public class BillOfParcelsDetail extends BaseModel<BillOfParcelsDetail> {


    @ApiModelProperty(value = "零售控价 0：关闭，1开启")
    private Integer retailControl;

    @ApiModelProperty(value = "生产商日期")
    private LocalDateTime producerDate;

    @ApiModelProperty(value = "货箱编码")
    private String boxCode;

    @ApiModelProperty(value = "商品分类id")
    private String categoryId;

    @ApiModelProperty(value = "补货单编码")
    private String replenishmentPurchaseCode;

    @ApiModelProperty(value = "供货价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "商品编码")
    private String productSysCode;

    @ApiModelProperty(value = "商品id")
    private String spuId;

    @ApiModelProperty(value = "销售属性")
    private String salesAttr;

    @ApiModelProperty(value = "温区id")
    private String temperAreaId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "重量")
    private BigDecimal heavy;

    @ApiModelProperty(value = "发货单据编码")
    private String billOfParcelsCode;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "仓库编码")
    private String warehouseCode;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "商品数量")
    private Integer goodsNumber;

    @ApiModelProperty(value = "商品主图")
    private String imgUrl;

    @ApiModelProperty(value = "生产商名称")
    private String producerName;

    @ApiModelProperty(value = "保质期")
    private Integer warrantyDate;

    @ApiModelProperty(value = "零售价")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "生产商id")
    private String producerId;

    @ApiModelProperty(value = "sku")
    private String barcodeSysCode;

    @ApiModelProperty(value = "来源")
    private String sourceId;

    @ApiModelProperty(value = "货箱规格id")
    private String goodsBoxSpecId;

    @ApiModelProperty(value = "数据类型")
    private String dataType;

    @ApiModelProperty(value = "规格编码")
    @TableField(exist = false)
    private String specCode;

    @ApiModelProperty(value = "商品规格，中台接口漏了，懒得保存了")
    @TableField(exist = false)
    private String specification;
}
